package com.xyw.code.study20200813.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xyw.code.study20200813.po.SysUser;
import com.xyw.code.study20200813.po.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author xyw
 * @since 2020-02-07
 */
@Mapper
public interface UsersMapper extends BaseMapper<Users> {
    @Insert("insert into users(time_date, time_timestamp, time_long) value(#{timeDate}, #{timeTimestamp}, #{timeLong})")
    @Options(useGeneratedKeys = true,keyProperty = "id",keyColumn = "id")
    int saveUsers(Users users);
}